﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace projetoFinal
{
    public enum status
    {
        ativo = 1,
        inativo = 2
    }

    public class modulo
    {
        #region Atributos
        Int64 codModulo;
        string descr;
        status status;
        #endregion

        #region Propriedades
        public Int64 CodModulo
        {
            get { return codModulo; }
            private set { codModulo = value; }
        }
        public string Descr
        {
            get { return descr; }
            set { descr = value.Trim(); }
        }
        public status Status
        {
            get { return status; }
            set { status = value; }
        }
        #endregion

        #region Métodos
        public modulo()
        {
            this.CodModulo = 0;
            this.Descr = string.Empty;
            this.Status = status.ativo;
        }
        public modulo(Int64 codModulo, string descr, status status)
        {
            this.CodModulo = codModulo;
            this.Descr = descr;
            this.Status = status;
        }
        #endregion
    }
}
